﻿@model IEnumerable<MvcAtletIS.Models.Contacts>

@{
    ViewBag.Title = "Prehľad kontaktov";
}

<h2>Prehľad kontaktov: @ViewBag.Clubs.Name</h2>

<p>
    Počet záznamov: @Model.Count()
</p>

<table width="100%">
    <tr>
        <th width="15%">
            Priezvisko
        </th>
        <th width="15%">
            Meno
        </th>
        <th width="10%">
            Pozícia
        </th>
        <th width="10%">
            Mesto
        </th>
        <th width="15%">
            Adresa
        </th>
        <th width="10%">
            Email
        </th>
        <th width="10%">
            Telefón
        </th>
        <th width="15%">
            Ďalšie
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Surname)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Firstname)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Position)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Adress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Other)
        </td>
    </tr>
}

</table>

